package com.cms.work.util;

import java.util.UUID;

import org.apache.shiro.crypto.hash.Md5Hash;

public class CommonUtils {

	public static String uuid(){
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static String UUID(){
        return UUID.randomUUID().toString().replace("-","").toUpperCase();
    }
    
    public static String md5(String password, String salt){
    	return new Md5Hash(password, salt, 2).toHex();
    }
    
}
